import 'dnp_order_list_model.dart';

class DnpOrderListInfoModel {
  List<DnpOrderListModel>? syllables;
  int? parsley;

  DnpOrderListInfoModel({this.syllables, this.parsley});

  factory DnpOrderListInfoModel.fromJson(Map<String, dynamic> json) =>
      DnpOrderListInfoModel(
        syllables: (json['syllables'] as List?)
            ?.map((e) => DnpOrderListModel.fromJson(e))
            .toList(),
        parsley: json['parsley'],
      );

  Map<String, dynamic> toJson() => {
        'syllables': syllables?.map((e) => e.toJson()).toList(),
        'parsley': parsley,
      };
}
